package com.dong.router.compiler.utils

import java.util.*

/**
 * @description:
 * @author dong
 * @date 2022/2/25 14:56
 */
fun  firstToUpperCase(str: String): String {
    return str.replaceFirstChar { if (it.isLowerCase()) it.titlecase(Locale.ROOT) else it.toString() }
}